/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import java.util.HashMap;
/*    */ import java.util.Iterator;
/*    */ import java.util.Map;
/*    */ import java.util.Set;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcCheckSpellingResponse
/*    */   extends LmcSoapResponse
/*    */ {
/* 26 */   private Map<String, String[]> mMisspelled = new HashMap();
/*    */   private boolean mIsAvailable;
/*    */   
/*    */   public LmcCheckSpellingResponse(boolean isAvailable) {
/* 30 */     this.mIsAvailable = isAvailable;
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */   public boolean isAvailable()
/*    */   {
/* 37 */     return this.mIsAvailable;
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   public void addMisspelled(String word, String[] suggestions)
/*    */   {
/* 46 */     if (suggestions == null) {
/* 47 */       suggestions = new String[0];
/*    */     }
/* 49 */     this.mMisspelled.put(word, suggestions);
/*    */   }
/*    */   
/*    */   public Iterator<String> getMisspelledWordsIterator() {
/* 53 */     return this.mMisspelled.keySet().iterator();
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   public String[] getSuggestions(String word)
/*    */   {
/* 63 */     return (String[])this.mMisspelled.get(word);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcCheckSpellingResponse.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */